package com.yydm.serviceedu.entity.category;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @Classname OneCategory
 * @Description TODO
 * @Version 1.0.0
 * @Date 2022/6/27 15:10
 * @Created by liu25
 */
//一级分类
@Data
public class OneCategory {
    private int id;
    private String name;

    //    一个一级分类有多个二级分类
    private List<TwoCategory> children = new ArrayList<>();

}
